
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'horizontalForm',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>

<fieldset>

    <?php echo $form->errorSummary($model); ?>

    <br>

     <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Tanggal</label>
        <div class="controls">
            <?php
            $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'no_op',
                'language' => 'id',
                // additional javascript options for the date picker plugin
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => 'yy-mm-dd',
                    'yearRange' => 'c-50:c+20',
                ),
                'htmlOptions' => array(
                    'style' => 'height:20px;'
                ),
            ));
            ?>

        </div>
    </div>

<div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Sampai Dengan</label>
        <div class="controls">
            <?php
            $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                'model' => $model,
                'attribute' => 'nama_pmk',
                'language' => 'id',
                // additional javascript options for the date picker plugin
                'options' => array(
                    'showAnim' => 'fold',
                    'dateFormat' => 'yy-mm-dd',
                    'yearRange' => 'c-50:c+20',
                ),
                'htmlOptions' => array(
                    'style' => 'height:20px;'
                ),
            ));
            ?>

        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">Fungsi Data dan Informasi </label>
        <div class="controls">
            <?php echo $form->textField($model, 'lokasi_op', array('class' => 'span2', 'maxlength' => 35)); ?>
        </div>
    </div>
    
        <div class="control-group ">
        <label class="control-label" for="Nama Pemilik"><h3><b>Pengesahan</b></h3> </label>
    </div>
    <hr>
    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">KASI </label>
        <div class="controls">
            <?php
            echo $form->radioButtonList($model, 'lokasi_op', array(
                'Kepala Seksi Penerimaan PBB',
                'Kasi Pelaporan',
            ));
            ?>        
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label" for="Nama Pemilik">KABID </label>
        <div class="controls">
            <?php
            echo $form->radioButtonList($model, 'lokasi_op', array(
                'Kabid Penerimaan Lain-lain',
                'Kabid Evaluasi dan Pelaporan',
            ));
            ?>        
        </div>
    </div>

    
    <div class="form-actions">
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => $model->isNewRecord ? 'Cetak' : 'cetak',
        ));
        ?>
        <?php
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'reset',
            'type' => 'primary',
            'label' => $model->isNewRecord ? 'Batal' : 'reset',
        ));
        ?>
    </div>

    <?php $this->endWidget(); ?>


    <?php
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id' => 'dialog-objek',
        'theme' => 'sunny',
        'themeUrl' => Yii::app()->request->baseUrl . '/css/themes',
        'options' => array(
            'title' => 'Data Objek',
            'width' => 600,
            'min-height' => 400,
            'autoOpen' => false,
            'buttons' => array(
                'Ok' => 'js:function(){$(this).dialog("close")}',),
        ),
    ));
    ?>


    <?php
    $this->widget('bootstrap.widgets.TbGridView', array(
        'id' => 'ObjekPajak',
        'dataProvider' => $model->search(),
        'filter' => $model,
        'columns' => array(
            array(
                'name' => 'no_op',
                'value' => '$data->no_op',
            ),
            array(
                'name' => 'nama_pmk',
                'value' => '$data->nama_pmk'
            ),
            array(
                'value' => 'CHtml::submitButton("Pilih",array("no_op"=>$data->no_op,"onClick"=>"PilihNop($(this).attr(\'no_op\'))"))',
                'type' => 'raw',
            ),
        ),
    ));
    ?>


    <?php
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    ?>

    <?php
    $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id' => 'dialog-alert',
        'theme' => 'sunny',
        'themeUrl' => Yii::app()->request->baseUrl . '/css/themes',
        'options' => array(
            'title' => 'Data Objek',
            'width' => 600,
            'min-height' => 400,
            'autoOpen' => false,
            'buttons' => array(
                'Ok' => 'js:function(){$(this).dialog("close")}',),
        ),
    ));
    ?>

    <div id='txtAlert'></div>

    <?php
    $this->endWidget('zii.widgets.jui.CJuiDialog');
    ?>
</fieldset>